package com.app.model;


import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_message")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class MessageModel {
    @TableId(type = IdType.AUTO)
//    @ExcelProperty(index = 0)
    private Integer number;  //序号
    private Integer id;
    private String personId;//接收人ID
    private String departmentId;//接收单位id
    private String title;//提醒消息
    private String content;//提醒内容
    private Integer categoryId;//消息类型
    private Integer type;//1系统消息2二级单位消息3战士消息
    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    private String personName;// 所属人名字字段
    @TableField(exist = false)
    private String TypeText;//型号类型字段
    @TableField(exist = false)
    private String categoryText;//型号类型字段
    @TableField(exist = false)
    private String departmentText;//部门类型字段
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private Integer messageId;
    @TableField(exist = false)
    private Boolean isRead;
    @TableField(exist = false)
    private String isReadText;




}
